<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingTop="56dp"
    android:paddingLeft="24dp"
    android:paddingRight="24dp"
    tools:context=".NewDeviceActivity">

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@+id/new_device_layout" >
        <com.google.android.material.textfield.TextInputLayout
            android:id="@+id/new_mac_layout"
            style="@style/LoginEditText"
            android:layout_marginTop="4dp"
            android:layout_marginBottom="4dp"
            app:errorEnabled="true">

            <com.google.android.material.textfield.TextInputEditText
                android:id="@+id/new_mac"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:hint="@string/mac"
                android:inputType="textUri"
                android:paddingRight="44dp"/>
        </com.google.android.material.textfield.TextInputLayout>

        <ImageButton
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:layout_centerVertical="true"
            android:layout_marginStart="5dp"
            android:layout_marginTop="5dp"
            android:layout_marginEnd="5dp"
            android:layout_marginBottom="5dp"
            android:background="#00000000"
            android:contentDescription="@string/scan_mac"
            android:onClick="scanMac"
            android:paddingRight="10dp"
            android:src="@drawable/ic_camera_alt_black_24dp" />
    </RelativeLayout>

    <com.google.android.material.textfield.TextInputLayout
        style="@style/LoginEditText"
        android:layout_marginTop="4dp"
        android:layout_marginBottom="4dp">
        <com.google.android.material.textfield.TextInputEditText
            android:id="@+id/new_vendor"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:inputType="text"
            android:hint="@string/vendor"/>
    </com.google.android.material.textfield.TextInputLayout>
    <TableRow
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:layout_marginStart="8dp"
            android:layout_marginTop="8dp"
            android:padding="@dimen/padd_10"
            android:text="@string/role_is" />

        <Spinner
            android:id="@+id/new_role"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_marginStart="8dp"
            android:layout_marginEnd="8dp"
            android:layout_weight="2"
            android:padding="@dimen/padd_10" />
    </TableRow>
    <com.google.android.material.textfield.TextInputLayout
        style="@style/LoginEditText"
        android:layout_marginTop="8dp"
        android:layout_marginBottom="56dp"
        android:layout_height="match_parent">
        <com.google.android.material.textfield.TextInputEditText
            android:id="@+id/new_notes"
            android:gravity="top"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:inputType="textMultiLine"
            android:hint="@string/notes_or_description" />
    </com.google.android.material.textfield.TextInputLayout>
</LinearLayout>